import service from "@/service/http.interceptor";

/**
 * 获取活动轮播图列表
 */
export const getBanner = (params) => {
	return service.request({
		method: 'GET',
		url: '/shop/config/banner/c/bannerList',
		params,
		custom: {
			loading: true
		}
	})
}

/**
 * 获取首页顶部轮播图列表
 */
export const getTopBanner = (params) => {
	return service.request({
		method: 'GET',
		url: '/shop/config/top_banner/c/topBannerList',
		params,
		custom: {
			loading: true
		}
	})
}

/**
 * 获取商品列表
 */
export const goodsSpuList = (params) => {
	return service.request({
		method: 'GET',
		url: '/shop/goods/spu/c/goodsSpuList',
		params,
		custom: {
			loading: true
		}
	})
}

